package com.kantboot.functional.verification.code.web.admin.controller;

import com.kantboot.functional.verification.code.domain.entity.FunctionalVerificationCodeTemplate;
import com.kantboot.functional.verification.code.service.impl.FunctionalVerificationCodeTemplateService;
import com.kantboot.util.common.result.RestResult;
import com.kantboot.util.core.controller.BaseAdminController;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 功能性验证码模板控制器
 */
@RestController
@RequestMapping("/functional-verification-code-web/admin/verificationCodeTemplate")
public class FunctionalVerificationCodeTemplateControllerOfAdmin
        extends BaseAdminController<FunctionalVerificationCodeTemplate,Long> {

    @Resource
    private FunctionalVerificationCodeTemplateService service;

    @Override
    @RequestMapping("/save")
    public RestResult<Object> save(@RequestBody FunctionalVerificationCodeTemplate entity) {
        return RestResult.success(service.save(entity), "saveSuccess", "保存成功");
    }

}
